
#ifndef __HAL_FLASH_H__
#define __HAL_FLASH_H__

#include <stdint.h>

#define FLASH_SIZE 2048
#define SECTOR_SIZE 2048

//#define FLASH_PARAM_START_ADDRESS 0x0803F800

extern uint8_t Store_Value(uint16_t location, int16_t value);
extern int16_t Load_Stored_Value(uint16_t ReadAddr);
extern uint16_t parameter_read_from_flash(uint16_t index);

extern void FLASH_WriteMoreData(uint16_t Addr,uint16_t *writeData, uint16_t countToWrite);

#endif

